<?php
	
	namespace Aspic\Preset;

	interface StorableObjectInterface {
		
		/**
		 * This method should return a string that represent the object, 
		 * which could be a simple serialization of else that could re-rereate
		 * the object when passed to "fromStorableString" method.
		 * @return string
		 */
		public function toStorableString();
		
		/**
		 * @param string $storableString
		 * @return StorableObjectInterface An instance of the class implementing 
		 * this interface
		 */
		public static function fromStorableString($storableString);
		
	}